import request from "./request";

const baseURL = '/auth'

//
const check = () => {
  return request.doRequest(`${baseURL}/check`, {})
};

const doAuth = (form) => {
  return request.doRequest(`${baseURL}/doAuth`, {method: 'POST', data: form})
};

const resetPasskey = (form) => {
  return request.doRequest(`${baseURL}/resetPasskey`, {method: 'POST', data: form})
};

const AuthApi = {
  check, doAuth, resetPasskey
};

export default AuthApi;
